package com.meirengu.webview.service;

import com.meirengu.service.BaseService;
import com.meirengu.webview.model.User;

import java.util.List;
import java.util.Map;

/**
 * User服务接口
 *
 * @author maoruxin
 * @create Sun Dec 10 09:58:45 CST 2017
 */
public interface UserService extends BaseService<User> {

    Integer isExist(String mobile);

    User getByMobile(String mobile);

    /**
     * 注册
     *
     * @param phoneno
     * @param name
     * @param sex
     * @param cid
     * @return
     */
    public int signUp(String phoneno, String name, Integer sex, String city, String birthday, String cid, String ip) throws Exception;

    Integer getCountByTime(Map map) throws Exception;

    public List<Map<String, Object>> getAllMobile(Map map);
}
